/**
 * Created by DuHuiling on 2017/4/21.
 */

var Question = React.createClass({
    getDefaultProps:function(){
        return{
            moreUrl:"",
            list:[]
        }
    },
    render:function(){
        var list = this.props.data.list;
        return(
            <div className="mod-problem f-right">
                <h3>常见问题<a href={this.props.data.moreUrl}>更多 &gt;</a></h3>
                <ul>
                    {list.length > 0 ?
                        list.map(function(item,index){
                            return (
                                <li>&#8226;<a href={item.questionUrl?item.questionUrl:"javascript:void(0)"}>{item.Title}</a></li>
                            )
                        }) :
                        <div className="notdata"><img src="../content/images/img9.jpg"/>暂无记录！</div>
                    }
                </ul>
            </div>
        )
    }
});
module.exports = Question;